﻿using Ipmce.RemoteVoting.Backend.SmsGateway.Processing;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Ipmce.RemoteVoting.Backend.SmsGateway.UnitTests
{
	[TestClass]
	public class VoterSmsInfoParserTests
	{
		[TestMethod]
		public void TestParse()
		{
			var parser = new VoterSmsInfoParser();
			var result = parser.Parse("12 12.07.1985");
			Assert.IsNotNull(result);
			Assert.AreEqual("12", result.PassportNumber);
			Assert.AreEqual(12, result.Birthdate.Day);
			Assert.AreEqual(1985, result.Birthdate.Year);
		}
	}
}
